home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
jazclib1.arc
/
JZSCROFF.C
< prev
next >
Wrap
Text File
|
1986-05-06
|
916b
|
29 lines
#include <jaz.h>
/*
┌────────────────────────────────────────────────────────────────────────────┐
│jzscroff.c │
│Turn the display screen off. When turned back on the screen will be as it │
│was before. There is no need to save the data. │
│ │
│ (C) JazSoft Software by Jack A. Zucker (301) 794-5950 │
└────────────────────────────────────────────────────────────────────────────┘
*/
jzscroff()
{
#define CPORT 0x3D8 /* address of mode select register */
#define MPORT 0x3B8 /* address of CRT control port */
unsigned int PORTADDR; /* hold address of port */
unsigned int wport; /* hold original contents */
if (MEMB(0x40,0x49) == 7) /* mono card */
PORTADDR = MPORT;
else
PORTADDR = CPORT;
wport = inp(PORTADDR); /* get original contents */
outp(PORTADDR,wport & 0xF7); /* disable the display bit */
}